package com.avalon.erp.addon.pet.service.user;

import com.avalon.core.field.Field;
import com.avalon.core.field.Fields;
import com.avalon.core.service.AbstractService;
import com.avalon.erp.addon.pet.model.enums.UserSexEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class PetUserService extends AbstractService {
    @Override
    public String getServiceName() {
        return "pet.user";
    }

    @Override
    protected Field createNameField() {
        return Fields.createString("用户名");
    }

    private final Field nickName = Fields.createString("昵称");
    private final Field phone = Fields.createString("手机号");
    private final Field sex = Fields.createSelection("性别", UserSexEnum.class);
    private final Field birthday = Fields.createDate("生日");
    private final Field avatar = Fields.createImage("头像");
}
